package com.app.model;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_plant")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class    PlantModel {
    @TableId(type = IdType.AUTO)
    @ExcelIgnore
    private Integer id;
    private String position;//位置
    private String model;//型号
    private String type;// 类型
    private Integer number;//数量
//    private Integer departmentId;//单位
    private String personName;//负责人
    private Integer isXx;//有无战斗部
    private Integer isEngine;//有无真实发动机
    private String useTo;//用途
    private String warehousingDate;//入库日期
    private String deliveryDate;//出库日期
    private String remark;
    private Timestamp createTime;
    private Timestamp updateTime;
    //@ExcelProperty(index = 0)
    private Integer serialNumber;  //序号
//    @TableField(exist = false)
    private String departmentName;//单位
    @TableField(exist = false)
    private String isXxText;// 字段
    @TableField(exist = false)
    private String isEngineText;// 字段
    @TableField(exist = false)
    private Integer count;

    @TableField(exist = false)
    private String warehousingDateText;
    @TableField(exist = false)
    private String deliveryDateText;
}
